package cn.cvs.service.apply;

import cn.cvs.pojo.Apply;

import java.util.List;

public interface ApplyService {


	/**
	 * 增加
	 * @param apply
	 * @return
	 * @throws Exception
	 */
	public int save(Apply apply);

	/**
	 * 条件查询

	 * @param pageIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List<Apply> queryPageList(String applyTime,Integer status,  Integer pageIndex
			,  Integer pageSize);

	/**
	 * 条件查询总数

	 * @return
	 * @throws Exception
	 */
	public int selectCount(String applyTime,Integer status);

	/**
	 * 根据id删除
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int removeById(Integer id);


	/**
	 * 根据id查询
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Apply queryById( Integer id);

	/**
	 * 修改
	 * @param apply
	 * @return
	 * @throws Exception
	 */
	public int modifyById(Apply apply);
}
